package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.EmployeeLoginVO;

/**
 * 员工业务接口
 */
public interface EmployeeService {

    /**
     * 修改员工
     * @param employeeDTO
     * @return
     */
    Result update(EmployeeDTO employeeDTO);

    /**
     * 根据ID查询员工
     * @param id
     * @return
     */
    Result<Employee> findById(Long id);

    /**
     * 员工启用或禁用
     * @param status
     * @param id
     * @return
     */
    Result startOrStop(Integer status, Long id);

    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    Result<PageResult> pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 新增员工
     * @param employeeDTO
     * @return
     */
    Result add(EmployeeDTO employeeDTO);

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Result<EmployeeLoginVO> login(EmployeeLoginDTO employeeLoginDTO);



}
